
from django.contrib import admin
from django.urls import path,include
from django.contrib.sitemaps.views import sitemap
from apps.blog.sitemaps import PostSitemap
sitemaps = {
    'posts': PostSitemap,
}
urlpatterns = [
    path('admin/', admin.site.urls),
    path('',include('apps.blog.urls',namespace='blog')),
    path('sitemap.xml', sitemap, {'sitemaps': sitemaps},
         name='django.contrib.sitemaps.views.sitemap')#这个页面存放所有页面的地址
]
